package com.ruoyi.zsyh.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 产品分类对象 zsyh_platform_partstype
 * 
 * @author yuexl
 * @date 2021-12-08
 */
public class ZsyhPlatformPartstype extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 类别代码 */
    @Excel(name = "类别代码")
    private String typeCode;

    @Excel(name = "父类ID")
    private String pId;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String typeName;

    /** 类型等级 */
    private String typeLevel;

    /** 排序 排序数字越大，排序约靠前 */
    @Excel(name = "排序 排序数字越大，排序约靠前")
    private Integer typeSort;

    /** 所有父级编号 */
    private String parentIds;

    /** 分类logo url */
    @Excel(name = "分类logo url")
    private String typeImgurl;

    private String cooperationPolicy;

    private String populationSalesRatio;

    private String salesPaymentRatio;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTypeLevel(String typeLevel) 
    {
        this.typeLevel = typeLevel;
    }

    public String getTypeLevel() 
    {
        return typeLevel;
    }

    public void setParentIds(String parentIds) 
    {
        this.parentIds = parentIds;
    }

    public String getParentIds() 
    {
        return parentIds;
    }
    public void setTypeImgurl(String typeImgurl) 
    {
        this.typeImgurl = typeImgurl;
    }

    public String getTypeImgurl() 
    {
        return typeImgurl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeCode", getTypeCode())
            .append("typeName", getTypeName())
            .append("parentId", getParentId())
            .append("typeLevel", getTypeLevel())
            .append("typeSort",getTypeSort())
            .append("parentIds", getParentIds())
            .append("typeImgurl", getTypeImgurl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public Integer getTypeSort() {
        return typeSort;
    }

    public void setTypeSort(Integer typeSort) {
        this.typeSort = typeSort;
    }

    public String getCooperationPolicy() {
        return cooperationPolicy;
    }

    public void setCooperationPolicy(String cooperationPolicy) {
        this.cooperationPolicy = cooperationPolicy;
    }

    public String getPopulationSalesRatio() {
        return populationSalesRatio;
    }

    public void setPopulationSalesRatio(String populationSalesRatio) {
        this.populationSalesRatio = populationSalesRatio;
    }

    public String getSalesPaymentRatio() {
        return salesPaymentRatio;
    }

    public void setSalesPaymentRatio(String salesPaymentRatio) {
        this.salesPaymentRatio = salesPaymentRatio;
    }
}
